package aop.ThrowAdvice;

import org.apache.log4j.Logger;
import org.springframework.aop.ThrowsAdvice;

public class LoggingThrowAdvice implements ThrowsAdvice {
	private Logger log = Logger.getLogger(getClass());
	
	public void afterThrowing(IllegalArgumentException e) throws Throwable{
		log.error("Illegal argument.");
	}
}
